<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Gossip extends EntityWithID
{
    private $text;
    private $isPositive;
    private $teacherId;

    function __construct($id, $text, $is_Positive, $teacher_id) {
        parent::__construct($id);
        $this->text = $text;
        $this->isPossible = $is_Positive;
        $this->teacherId = $teacher_id;
        $this->columns = "Text, IsPositive, TeacherID";
    }

    public function getText() {
        return $this->text;
    }

    public function getIsPositive() {
        return $this->isPositive;
    }

    public function getTeacherId() {
        return $this->teacherId;
    }

    public function getValues() {
        $str = "'" . $this->text .  "','" . $this->isPositive .  "'," . $this->teacherId;
        return $str;
    }
}